package net.atlasdream.mybatis.demo.mapper;

import net.atlasdream.mybatis.demo.model.Student;

import java.util.List;

/**
 * mybatis mapper
 */
public interface StudentMapper {
    List<Student> findAllStudents();
    List<Student> findAllStudentsByLimit(int offset, int limit);
    Student findStudentWithAddress(Integer studentId);
    Student findStudentById(Integer id);
    int insertStudent(Student student);
    Student deleteStudentById(Integer id);
    int updateStudent(Student student);
}
